package com.admin4j.server.system.entity.vo;

import com.admin4j.framework.security.jwt.JwtUserDetails;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Collection;

/**
 * @author andanyang
 * @since 2023/11/7 14:47
 */
@Data
public class SysUserLoginInfoVO implements JwtUserDetails {

    private static final long serialVersionUID = -5943535608623539244L;
    /**
     * 主部门ID
     */
    @ApiModelProperty("主部门ID")
    private Long deptId;
    @ApiModelProperty(value = "直属领导")
    private Long directLeader;
    private Long userId;
    @JsonIgnore
    private String password;
    private String jwtSalt;
    private String username;
    @ApiModelProperty("工号")
    private String workNo;
    private String email;
    private String mobile;
    private Integer sex;
    private String avatar;
    private Integer status;
    private String authType;
    private boolean admin;
    /**
     * 权限列表
     */
    private Collection<String> permissions;

    // private Set<GrantedAuthority> authorities;
    private boolean accountNonExpired = true;
    private boolean accountNonLocked = true;
    private boolean credentialsNonExpired = true;
    private boolean enabled = true;
    private Long tenantId;
}
